<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://sargue.net/jsptags/time" prefix="javatime" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>订单列表</title>
     <%@include file="../common/header.jsp" %>
</head>
<body>
<%@include file="../common/top.jsp" %>
<form id="orderForm" action="${pathUrl }/home/center/orderIndexList">
<div class="section clearfix" style="margin-top: 10px;">
    <!--页面左边-->
  	 <%@include file="left.jsp" %>
    <!--/页面左边-->

    <!--页面左边-->
    <div class="right-auto">
        <div class="bg-wrap" style="min-height:765px;">


            <div class="sub-tit " style="margin: 0px;">
                <a class="add" href="javascript:history.go(-1);"><i class="iconfont icon-reply"></i>返回</a>
                <ul>
                    <li class="selected">
                        <a href="javascript:;">交易订单</a>
                    </li>
                </ul>
            </div>

           <div id="orderMain">
               <table width="100%" border="0" cellspacing="0" cellpadding="0"
                      class="ftable">
                   <tbody>
                   <tr>
                       <th width="16%" align="left">订单号</th>
                       <th width="10%">姓名</th>
                       <th width="12%">订单金额</th>
                       <th width="11%">下单时间</th>
                       <th width="10%">状态</th>
                       <th width="12%">操作</th>
                   </tr>
                   <c:choose>
                       <c:when test="${orderIPage.records.size()>0 }">
                           <c:forEach var="vo" items="${orderIPage.records }">
                               <tr>
                                   <td>${vo.orderSn }</td>
                                   <td align="center">${vo.userName }</td>
                                   <td align="center"><strong>￥${vo.totalMoney }</strong><br></td>
                                   <td align="center"><javatime:format value="${vo.addTime}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
                                   <td align="center"><c:choose>
                                       <c:when test="${vo.shopState eq 1 }">已支付,未确认</c:when>
                                       <c:when test="${vo.shopState eq 2 }">已确认，已发货</c:when>
                                       <c:when test="${vo.shopState eq 3 }">已完成</c:when>
                                       <c:when test="${vo.shopState eq -1 }">已取消</c:when>
                                   </c:choose></td>
                                   <td align="center"><a
                                           href="${pathUrl }/home/center/orderDetail?id=${vo.id}">查看订单</a><br>
                                   </td>
                               </tr>
                           </c:forEach>
                       </c:when>
                       <c:otherwise>
                           <tr>
                               <td colspan="7">暂无数据</td>
                           </tr>
                       </c:otherwise>
                   </c:choose>

                   </tbody>
               </table>
           </div>
           <div id="pager"></div>
        </div>
    </div>
    <!--/页面左边-->
</div>

</form>
 <jsp:include page="../../common/laypage.jsp"></jsp:include>
 <script type="text/javascript">

 </script>
</body>
</html>